package top.mschen.blog.demo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class AppRunner  implements CommandLineRunner{

    @Value("${env}")
    private String env;

    @Value("${label}")
    private String label;

    @Override
    public void run(String... args) throws Exception {
        System.out.println(env+"!!!"+label);
    }
}